<?php
namespace app\zw_admin\controller;
use \think\Controller;
use think\Db;
// use think\Controller;
use think\Session;
use think\Request;
// use app\zw_admin\controller\ComController;
class IndexController extends ComController
{
	//首页展示
    public function index()
    {
        // $list = db('user')->select();
        // dump($list);
        // exit;
        
        // $s_count =  Db::name('commodity')->where('pid','neq','0')->count();

        // /**
        //  * 各类信息数量统计
        //  */
        // $member_count = db('member')->count();  //用户数量;
        // $brand_count = db('brand')->count();    //品牌数量;
        // $order_count = db('goods_order')->count();    //订单数量;

        // $order_list = db('goods_order')->order('order_id desc')->limit(8)->select();  //最新的10条订单

        // $selling_list = db('selling')->order('selling_id desc')->limit(5)->select();  //最新的10个卖场


        // // dump($s_number);
        // // exit;
        // $this->assign('s_count',$s_count);
        // $this->assign('member_count',$member_count);
        // $this->assign('brand_count',$brand_count);
        // $this->assign('order_count',$order_count);
        // $this->assign('order_list',$order_list);
        // $this->assign('selling_list',$selling_list);
        return $this->fetch('index');
    }


    //成员列表
    public function users()
    {
    	return $this->fetch('users');
    }



}
